package com.zking.ssm.He.service.impl;

import com.zking.ssm.He.mapper.HotelLiquidationMapper;
import com.zking.ssm.He.model.HotelLiquidation;
import com.zking.ssm.He.service.IHotelLiquidationService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class IHotelLiquidationServiceImpl implements IHotelLiquidationService {

    @Autowired
    private HotelLiquidationMapper hotelLiquidationMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {

        return hotelLiquidationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelLiquidation record)

    {
        return hotelLiquidationMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelLiquidation record) {
        return hotelLiquidationMapper.insertSelective(record) ;
    }

    @Override
    public HotelLiquidation selectByPrimaryKey(Integer id) {

        return hotelLiquidationMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelLiquidation record) {

        return hotelLiquidationMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelLiquidation record) {
        return hotelLiquidationMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelLiquidation> list(HotelLiquidation record, PageBean pageBean)
    {
        return hotelLiquidationMapper.list(record);
    }
}
